#include <iostream>
using namespace std;

int main()
{
	int n;
	long a,b,sum=0;
	cin >> n;
	long *pArr = new long[n];
	for(int i=0; i<n; i++) {
		cin >> a >> b;
		sum = a+b;
		pArr[i]=sum;
		sum = 0;
	}
	for(int j=0; j<n; j++) {
		cout << pArr[j] << endl;
	}
	delete pArr;
	return 0;
}
